package com.wiscamp.ninechapters.tags.domain.models;

import cube.ddd.domain.Entity;
import lombok.Data;

/**
 * 学科知识点关联
 */
@Data
public class KnowledgePointRelation implements Entity {
    /**
     * 自动编号
     */
    private long id = 0;

    /**
     * 源头知识点
     */
    private long sourcePointId = 0;

    /**
     * 目标知识点
     */
    private long targetPointId = 0;

    /**
     * 关联类型
     */
    private int relationTypeId = 0;

    /**
     * 权重
     */
    private int weight = 0;

    /**
     * 进入阈值
     */
    private long entryThreshold = 0;

    public KnowledgePointRelation(long sourcePointId, long targetPointId, int relationTypeId, int weight, int threshold) {
        this.sourcePointId = sourcePointId;
        this.targetPointId = targetPointId;
        this.relationTypeId = relationTypeId;
        this.weight = weight;
        this.entryThreshold = threshold;
    }
}